import React,{ Component } from 'react';
import Chart from 'components/widget/Chart'

export default class RadarClinet extends Component{
	constructor (props){
		super(props)
	}
	render(){
		let numberData = []
		let time = []
		this.props.lineData.forEach((item, index) => {
			numberData.push(item.total_count)
			time.push(item.date)
		})
		let form = {
			data: numberData,
			time: time
		}
		return(
			<div>
				<Chart name='客户兴趣占比' type='pie' data={this.props.pieData} myclassName='chart1'/>
    		<Chart name='近两周客户活跃度' type='line' data={form} myclassName='chart2'/>
			</div>
		)
	}
}